﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace exerciseNine
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入三个数：");
            double number1 = int.Parse(Console.ReadLine());
            double number2 = int.Parse(Console.ReadLine());
            double number3 = int.Parse(Console.ReadLine());
            Console.WriteLine("最大的数为： "+ Biggest(number1,number2,number3));
            Console.ReadKey();
        }
        ///<summary>
        ///找出最大值
        ///</summary>summary>
        ///<param name="a">第一个数</param>
        ///<param name="b">第二个数</param>
        ///<param name="c">第二个数</param>
        ///<returns>计算结果</param>
        static double Biggest(double a, double b, double c)
        {
            double temp = a;
            if (temp > b)
            {
                if (temp>c)
                {
                    return a;
                }
                else
                {
                    return c;
                }
            }
            else
            {
                temp = b;
                if (temp>c)
                {
                    return b;
                }
                else
                {
                    return c;
                }
            }
        }
    }
}
